package com.itheima.arithmaticoperator;

public class Demo2 {
    public static void main(String[] args) {
        // 字符相加
        char c = 'a';
        int res = c + 0;
        System.out.println(res); // 97
        System.out.println(1 + 'a'); // 98
        System.out.println('a' + "abc"); // "aabc"
        System.out.println('a' + 0 + "abc"); // "97abc"
    }
}
